<%-- 
    Document   : plantilla
    Created on : 27/11/2009, 08:36:08 PM
    Author     : FreddyHIQ
--%>

<%@page contentType="text/html" pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t" %>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<link href="/general/css/admin_1.css" rel="stylesheet" type="text/css"/>
<script language="JavaScript" type="text/javascript" src="/tramite/javaScript/scripts.js"></script>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<f:view>
    <t:div>
        <h:form id="frmDocumentos" styleClass="fondoFormulariosyPanel">
            <h:panelGrid columns="1" styleClass="rayaForms" width="100%">
                <h:outputLabel  value="Creacion de Plantilla" />
            </h:panelGrid>
            <br/>
            <h:panelGrid columns="2">
            <h:outputLabel  value="Nombre Plantilla:" />
            <h:inputText value="#{PlantillaController.plantilla.plaNombre}" />
            </h:panelGrid>
            <a4j:outputPanel id="panelD" ajaxRendered="true">
                <h:panelGrid columns="6">
                    <h:outputLabel  value="Tipo Documento:" />
                    <h:selectOneMenu value="#{PlantillaController.plantilla.fkTdoCodigo}">
                        <f:selectItems value="#{tipoDocumentoController.tipoDocumentoCombo}" />                        
                    </h:selectOneMenu>
                    <h:outputLabel  value="Publico:" />
                    <h:selectBooleanCheckbox label="Publico" value="#{PlantillaController.plantilla.plaPublico}"/>
                    <h:commandButton action="#{PlantillaController.gusrdarPlant}" value="Guardar" />
                </h:panelGrid>
                <rich:editor id="editor" width="800" height="400" value="#{PlantillaController.plantilla.plaContenido}"
                theme="advanced">
                    <f:param name="theme_advanced_toolbar_location" value="top"/>
                    <f:param name="theme_advanced_toolbar_align" value="left"/>
                </rich:editor>
            </a4j:outputPanel>
            <a4j:outputPanel id="panelM" ajaxRendered="true">
                <h:messages id="lblMessages" showDetail="true" errorStyle="color:red;" infoStyle="color:blue;"/>
            </a4j:outputPanel>
        </h:form>
    </t:div>
</f:view>